home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks96 / InternetChooser.sit / Internet Chooser / Sample LDEFs 2.0 / (Sys 7) Icon LDEF / Tester Src / Windows.c < prev    next >
Text File  |  1993-10-22  |  966b  |  46 lines

  1. // File "Windows.c"
  2.  
  3. #include "main.h"
  4. #include "Windows.h"
  5.  
  6. extern WindowPtr gWindow;
  7. extern ListHandle gList;
  8.  
  9. // * **************************************************************************** * //
  10. // * **************************************************************************** * //
  11.  
  12. void DoUpdate() {
  13.     Rect grayRect;
  14.     GrafPtr savePort;
  15.     
  16.     GetPort(&savePort);
  17.     SetPort(gWindow);
  18.     BeginUpdate(gWindow);
  19.     
  20.     DrawGrowIcon(gWindow);
  21.     grayRect = gWindow->portRect;
  22.     grayRect.right -= 15;
  23.     grayRect.bottom -= 15;
  24.     FillRect(&grayRect, gray);
  25.     
  26.     LUpdate(gWindow->visRgn, gList);
  27.  
  28.     EndUpdate(gWindow);
  29.     SetPort(savePort);
  30.     }
  31.  
  32. // * **************************************************************************** * //
  33. // * **************************************************************************** * //
  34.  
  35. void DoActivate(short active) {
  36.     GrafPtr savePort;
  37.     
  38.     GetPort(&savePort);
  39.     SetPort(gWindow);
  40.     
  41.     DrawGrowIcon(gWindow);
  42.     LActivate(active, gList);
  43.     
  44.     SetPort(savePort);
  45.     }
  46.